home *** CD-ROM | disk | FTP | other *** search
/ AV Gamer 6 / AV Gamer 6.iso / swappar.exe / IBENT2.DXR / 00034_SW.OFF.ls < prev    next >
Encoding:
Text File  |  1996-03-12  |  552 b   |  23 lines

  1. on mouseDown
  2.   global bot3
  3.   repeat while stillDown()
  4.     if rollOver(clickOn()) then
  5.       set the castNum of sprite clickOn() to the number of cast "SW.OFF"
  6.       next repeat
  7.     end if
  8.     set the castNum of sprite clickOn() to the number of cast "SW.ON"
  9.   end repeat
  10.   set the castNum of sprite clickOn() to the number of cast "SW.ON"
  11.   if rollOver(clickOn()) then
  12.     puppetSound("ZAP")
  13.   end if
  14.   updateStage()
  15.   set w to the ticks + 60
  16.   repeat while w > the ticks
  17.     nothing()
  18.   end repeat
  19.   puppetSound(0)
  20.   updateStage()
  21.   set bot3 to 2
  22. end
  23.